package teleradiologia.service;

import java.util.List;
import teleradiologia.domain.Offer;
import teleradiologia.repository.OfferDao;

public class OfferManipulatorImpl implements OfferManipulator {
	private OfferDao offerDao;

	@Override
	public long create(Offer offer) {
		return this.offerDao.create(offer);
	}

	@Override
	public void delete(Offer offer) {
		this.offerDao.delete(offer);
	}

	@Override
	public Offer getById(long id) {
		return offerDao.getById(id);
	}

	@Override
	public void setOfferDao(OfferDao offerDao) {
		this.offerDao = offerDao;
	}

	@Override
	public void update(Offer offer) {
		this.offerDao.update(offer);
	}

	@Override
	public List<Offer> getAllByManagerdiagnosticlab(String nip) {
		return this.offerDao.getAllByManagerdiagnosticlab(nip);
	}
}
